<html>
<head><meta charset="utf-8"><title>test with std library · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test.20with.20std.20library.html">test with std library</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="196603167"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/test%20with%20std%20library/near/196603167" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Coenen Benjamin <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test.20with.20std.20library.html#196603167">(May 06 2020 at 08:37)</a>:</h4>
<p>Hello everyone ! I'm wondering if there is a way to add std lib analysis in a specific test case ? For example I'm trying to make a test with iterators on hover element.</p>



<a name="196603238"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/test%20with%20std%20library/near/196603238" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test.20with.20std.20library.html#196603238">(May 06 2020 at 08:38)</a>:</h4>
<p>No, by design not -- that would make the tests slow</p>



<a name="196603292"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/test%20with%20std%20library/near/196603292" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test.20with.20std.20library.html#196603292">(May 06 2020 at 08:38)</a>:</h4>
<p>Instead, relevant minimal bits of stdlib should be copied into a fixture</p>



<a name="196603326"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/test%20with%20std%20library/near/196603326" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test.20with.20std.20library.html#196603326">(May 06 2020 at 08:38)</a>:</h4>
<p>See, for example, <code>FamousDefs::fixture</code> in assists</p>



<a name="196603464"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/test%20with%20std%20library/near/196603464" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Coenen Benjamin <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/test.20with.20std.20library.html#196603464">(May 06 2020 at 08:40)</a>:</h4>
<p>I will take a look ! Thank you</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>